package net.pm.core.entities.db;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import net.pm.core.entities.PMCommandEntity;


/**
 * The persistent class for the pmpower database table.
 * PM权限实体类
 * 1	创建用户	CREATE_PMUSER	创建用户
 * 2	禁用用户	DISABLE_PMUSER	禁用用户
 * 3	启用用户	ENABLE_PMUSER	启用用户
 * 4	创建订单	CREATE_ORDER	创建订单
 * 5	查看订单信息	VIEW_ORDER	查看订单
 * 6	生产订单	PRODUCE_ORDER	生产订单
 * 7	删除订单	REMOVE_ORDER	删除订单
 * 8	取消订单	CANCEL_ORDER	取消订单
 * 9	产品检测入库	CHECKIN_PRODUCT	产品检测入库
 * 10查看产品信息	VIEW_PRODUCT	查看产品信息
 */
@Entity
@Table(name="pmpower")
public class Pmpower  extends PMCommandEntity<Pmdept>  {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1682295195515861598L;
	private Integer id;
	private String powerCode;
	private String powerDesc;
	private String powerName;

    public Pmpower() {
    }
    

    public Pmpower(Integer id) {
		super();
		this.id = id;
	}



	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(unique=true, nullable=false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}


	public String getPowerCode() {
		return this.powerCode;
	}

	public void setPowerCode(String powerCode) {
		this.powerCode = powerCode;
	}


	public String getPowerDesc() {
		return this.powerDesc;
	}

	public void setPowerDesc(String powerDesc) {
		this.powerDesc = powerDesc;
	}


	public String getPowerName() {
		return this.powerName;
	}

	public void setPowerName(String powerName) {
		this.powerName = powerName;
	}

	@Override
	public int compareTo(Pmdept o) {
		// TODO Auto-generated method stub
		return 0;
	}
	
}